package com.httpclient;

import java.io.IOException;
import java.io.InputStream;
import java.util.List;
import org.apache.commons.httpclient.Cookie;
import org.apache.commons.httpclient.HttpClient;
import org.apache.commons.httpclient.HttpException;
import org.apache.commons.httpclient.NameValuePair;

public interface IHttpClient {

    public String doPost(String actionUrl, List<NameValuePair> params) throws IOException;

    public String doPost(String actionUrl, List<NameValuePair> params, String referer) throws IOException;

    public String doGet(String actionUrl, String referer) throws IOException;

    public InputStream doGetForInputStream(String actionUrl, String referer) throws HttpException, IOException;

    public HttpClient getHttpclient();

    public void addCookie(String name, String value, int version, String domain, String path);

    public void destroy();

    public String getLastExecuteUrl();

    public Cookie[] getCookies();

    public boolean matcherCharset(String s, String pattern);
}
